      <div class="templatemo-content-wrapper">
        <div class="templatemo-content">
          <ul class="nav nav-tabs mytabs">
          	 <li class="active"><a href="#">订单详情</a></li>
		  	 <li><a href="<?=site_url()?>/order/index">订单列表</a></li>
		  </ul> 
          <div class="row">
            <div class="col-md-12">
              <div class="table-responsive">
                <table class="table table-striped table-hover table-bordered">
                  <thead>
                    <tr>
                      <th>ID</th>
                       <th>订单编号</th>
                      <th>下单时间</th>
                      <th>家长姓名</th>
                      <th>手机号</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                        <td><?php echo $order['id'];?></td>
                      	<td><?php echo $order['orderno'];?></td>
                     	<td><?php echo $order['order_time'];?></td>
                      	<td><?php echo $order['pname'];?></td>
                     	<td><?php echo $order['phone'];?></td>
                     </tr>
                  </tbody>
                </table>
              </div>
               <div class="table-responsive">
                <h4 class="margin-bottom-15">订单详情</h4>
                <table class="table table-striped table-hover table-bordered">
                  <thead>
                    <tr>
                      <th>ID</th>
                      <th>日期</th>
                      <th>商品</th>
                      <th>数量</th>
                      <th>单价</th>
                      <th>合计</th>
                    </tr>
                  </thead>
                  <tbody>
                  	 <?php  foreach ($orderdetails as $item):?>
                    <tr>
                      <td><?php echo $item['id'];?></td>
                      <td><?php echo $item['date'];?></td>
                      <td><?php echo $item['name'];?></td>
                      <td><?php echo $item['amount'].$item['unit'];?></td>
                      <td><?php echo $item['price'].'元/'.$item['unit'];?></td>
                      <td><?php echo $item['amount']*$item['price'];?>元</td>
                    </tr>
                    <?php endforeach;?>
                    <tr>
                     	<td>总计</td>
                     	<td><?php echo $order['total'];?>元</td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
      </div>